
import React, { Component } from 'react'

export default class Son extends Component {

    constructor(props){
        super(props);
        console.log("this.props",this.props);
    }

  render() {
    return (
      <div>
        <h3>子组件</h3>
        <p>我是上p</p>
        {this.props.children}
        <p>我是中p</p>
        {this.props.s1}
        <p>我是下p</p>
      </div>
    )
  }
}
